package cn.edu.scau.cmi.chenyuesong.interProgramming;

import javafx.fxml.FXML;

import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;

public class myController {
	@FXML
	private Button btn_1,btn_2;
	@FXML
	private TextArea ta;
	
	private GraduateStudent gs = new GraduateStudent();
	private UndergraduateStudent us = new UndergraduateStudent();
	public void eventButton1(){
		ta.appendText(us.learning()+"\n");
    }
	public void eventButton2(){
		ta.appendText(gs.learning()+"\n");
    }
}
